import CellText from './CellComponents/CellText.vue'
import CellButton from './CellComponents/CellButton.vue'
import CellCheckbox from './CellComponents/CellCheckbox.vue'
import CellDatetime from './CellComponents/CellDatetime.vue'
import CellCombobox from './CellComponents/CellCombobox.vue'
import CellInteger from './CellComponents/CellInteger.vue'
import CellDecimal from './CellComponents/CellDecimal.vue'
import CellDate from './CellComponents/CellDate.vue'
import CellTextButton from './CellComponents/CellTextButton.vue'
import CellTextButtonWithSearch from './CellComponents/CellTextButtonWithSearch.vue'
import AdvancedCellTextButtonWithSearch from './CellComponents/AdvancedCellTextButtonWithSearch.vue'

export const getCellComponent = (cellType) => {
    const componentMap = {
        cellText: CellText,
        cellButton: CellButton,
        cellCheckbox: CellCheckbox,
        cellDatetime: CellDatetime,
        cellCombobox: CellCombobox,
        cellInteger: CellInteger,
        cellDecimal: CellDecimal,
        cellDate: CellDate,
        cellTextButton: CellTextButton,
        cellTextButtonWithSearch: CellTextButtonWithSearch,
        advancedCellTextButton: AdvancedCellTextButtonWithSearch
    }

    return componentMap[cellType] || CellText
}
